package cn.summit.web.service;


import cn.summit.web.entity.SysPermission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author summit
 * @since 2020/3/7 22:39
 */
public interface SysPermissionService extends IService<SysPermission> {

    /**
     * 通过用户id查询所拥有权限
     *
     * @param userId
     * @return
     */
    List<SysPermission> findByUserId(Long userId);

}
